package com.gsoe.auth.po;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 班级消息表
 * </p>
 *
 * @author xiaoma
 * @since 2024-12-14
 */
@Getter
@Setter
public class Message implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 消息
     */
    private String message;

    /**
     * 班级id
     */
    private Long classId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 用户名称
     */
    private String userName;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
}
